/*
 * @Author: Cenven
 * @Date: 2021-02-26 15:18:45
 * @Description: 北京泓深教育发展有限公司
 * @Descripttion:
 * @version: @Lastest
 * @LastEditTime: 2021-07-15 10:57:48
 * @CopyRight: 北京泓深教育发展有限公司
 */
import http from "~/utils/http";
export const getNotice = data => {
  return http({
    url: "notice/front/list",
    method: "post",
    data
  });
};
export const getNoticeDetail = id => {
  return http({
    url: "notice/pc/selectOne?id=" + id,
    method: "get"
  });
};
export const getReadNotice = userid => {
  return http({
    url: "userReadNotice/selectOneByUserId?userId=" + userid,
    method: "get"
  });
};
export const updateReadNotice = data => {
  return http({
    url: "userReadNotice/update",
    method: "post",
    data
  });
};
export const getFirends = data => {
  return http({
    url: "client/links/list",
    method: "post",
    data
  });
};
export const getWxLoginVaild = data => {
  return http({
    url: "client/wxlogin/status",
    method: "post",
    data
  });
};
export const richTextAssetsUpload = data => {
  return http({
    url: "common/richtext/file-upload",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data;charset=UTF-8"
    },
    data
  });
};
export const sendPayMessage = data => {
  return http({
    url: "wx/mp/message/remindPaySuccess",
    method: "post",
    data
  });
};
export const sendApplyMessage = data => {
  return http({
    url: "wx/mp/message/remindApplySuccess",
    method: "post",
    data
  });
};
